package com.chaoli.reggie_diy.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.chaoli.reggie_diy.common.R;
import com.chaoli.reggie_diy.domain.ShoppingCart;
import org.springframework.transaction.annotation.Transactional;

public interface ShoppingCartService extends IService<ShoppingCart> {

    /**
     * 减少购物车中的菜品或者套餐数量
     * @param shoppingCart
     * @return
     */
    @Transactional
    R<ShoppingCart> jianshao(ShoppingCart shoppingCart);
}
